package com.deloitte.sapnetweaver.command
{
	import com.adobe.cairngorm.control.CairngormEvent;
	import com.deloitte.sapnetweaver.business.DocumentDetailsDelegate;
	import com.deloitte.sapnetweaver.vo.AbstractVO;
	import com.deloitte.sapnetweaver.vo.AllMasterVO;
	import com.deloitte.sapnetweaver.vo.DBMasterVO;
	import com.deloitte.sapnetweaver.vo.DeliverableMasterVO;
	import com.deloitte.sapnetweaver.vo.DocTypeVO;
	import com.deloitte.sapnetweaver.vo.HardwareMasterVO;
	import com.deloitte.sapnetweaver.vo.OSMasterVO;
	import com.deloitte.sapnetweaver.vo.ProjectMasterVO;
	import com.deloitte.sapnetweaver.vo.ProjectPhaseVO;
	import com.deloitte.sapnetweaver.vo.SAPSystemMasterVO;
	
	import mx.collections.ArrayCollection;
	import mx.controls.Alert;
	import mx.rpc.events.ResultEvent;

	public class RetrieveProjectScopeDocumentsCommand extends BaseGetDataCommand
	{
		private var abstractVO : AbstractVO ;
		private var allMasterVO:AllMasterVO;
		private var dbMasterVO:DBMasterVO
		private var deliverableMasterVO:DeliverableMasterVO;
		private var docTypeVO:DocTypeVO;
		private var hardwareMasterVO:HardwareMasterVO;
		private var osMasterVO:OSMasterVO;
		private var projectMasterVO:ProjectMasterVO;
		private var projectPhaseVO:ProjectPhaseVO;
		private var sapSystemMasterVO:SAPSystemMasterVO;
		
		
		override public  function execute(event:CairngormEvent):void {
			new DocumentDetailsDelegate(this).findDocumentsForProjectScope();
		}
		public override function result(data:Object):void {
			_model.commonModel.searchResultDocuments = ResultEvent(data).result as ArrayCollection ;
						
		}
	}
}